
def a(n):
    re = 0
    for i in range(1,n+1):
        re+=i
    return re
def b(n):
    re = 1
    for i in range(1,n+1):
        re*=i
    return re
re = 0
for i in range(1,1000):
    if (a(i)-b(i))%100==0 :
        print(i)
        re+=1
print(re)